import { ref } from "vue";

export default function TreeRef() {
  const treeRef = ref();

  const setCheckedKeys = (value: unknown) => {
    treeRef.value.setCheckedKeys(value);
  };

  const getCheckedKeys = () => {
    return treeRef.value.getCheckedKeys();
  };

  return {
    treeRef,
    setCheckedKeys,
    getCheckedKeys,
  };
}
